OPC Studio User's Guide and Reference
SecurityKeysInfo Constructor(String,Int64,Byte[],Double,Double)



OpcLabs.BaseLib Assembly > OpcLabs.BaseLib.Security.KeyManagement Namespace > SecurityKeysInfo Class > SecurityKeysInfo Constructor : SecurityKeysInfo Constructor(String,Int64,Byte[],Double,Double)
The URI string for the set of algorithms and key lengths used to secure the messages.

The value of this parameter cannot be null (Nothing in Visual Basic).

The security token Id of the first key in the array of keys.
An array of keys, ordered by the sequence in which they are used.

The value of this parameter cannot be null (Nothing in Visual Basic).

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

The time before the current key is expected to expire. In milliseconds.

Valid values of this parameter are in the range from 0 to 1.79769313486232E+308 (Double.MaxValue).

The lifetime of a key. In milliseconds.

Valid values of this parameter are in the range from 0 to 1.79769313486232E+308 (Double.MaxValue).

Initializes a new instance of the class, specifying all its properties.
Syntax
'Declaration
 
Public Function New( _
   ByVal securityPolicyUriString As String, _
   ByVal firstTokenId As Long, _
   ByVal keys() As Byte, _
   ByVal timeToNextKey As Double, _
   ByVal keyLifetime As Double _
)
'Usage
 
Dim securityPolicyUriString As String
Dim firstTokenId As Long
Dim keys() As Byte
Dim timeToNextKey As Double
Dim keyLifetime As Double
 
Dim instance As New SecurityKeysInfo(securityPolicyUriString, firstTokenId, keys, timeToNextKey, keyLifetime)

Parameters

securityPolicyUriString
The URI string for the set of algorithms and key lengths used to secure the messages.

The value of this parameter cannot be null (Nothing in Visual Basic).

firstTokenId
The security token Id of the first key in the array of keys.
keys
An array of keys, ordered by the sequence in which they are used.

The value of this parameter cannot be null (Nothing in Visual Basic).

The individual elements of the parameter value cannot be null (Nothing in Visual Basic).

timeToNextKey
The time before the current key is expected to expire. In milliseconds.

Valid values of this parameter are in the range from 0 to 1.79769313486232E+308 (Double.MaxValue).

keyLifetime
The lifetime of a key. In milliseconds.

Valid values of this parameter are in the range from 0 to 1.79769313486232E+308 (Double.MaxValue).

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also